#include "aliyun_utils.h"
#include "mqtt.h"

//构建 上报阿里云 JSON 字符串
void AU_Init(void)
{
}

void AU_BuildPropertyReportJSON(char * str,char * ret_buf)
{
	char * formart_str = "{\"id\": \"123\",\"iotId\": \"%s\",\"method\": \"thing.event.property.post\",\"params\": {%s}}";
	char json_str[256];
	memset(json_str,0,sizeof(json_str));
	sprintf(json_str,formart_str,DEVICENAME,str);
	memcpy(ret_buf,json_str,strlen(json_str));
}